﻿<!DOCTYPE html>
<html lang="zh-CN" style="background: #fff;">
<head>
    <style>
        .szhlloading {
            width: 60px;
            height: 60px;
            background-color: #12b8f6;
            margin: 100px auto;
            -webkit-animation: rotateplane 1.2s infinite ease-in-out;
            animation: rotateplane 1.2s infinite ease-in-out;
        }

        @-webkit-keyframes rotateplane {
            0% {
                -webkit-transform: perspective(120px);
            }

            50% {
                -webkit-transform: perspective(120px) rotateY(180deg);
            }

            100% {
                -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
            }
        }

        @keyframes rotateplane {
            0% {
                transform: perspective(120px) rotateX(0deg) rotateY(0deg);
                -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
            }

            50% {
                transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
                -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
            }

            100% {
                transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
                -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
            }
        }
    </style>
</head>
<body>
    <div class="szhlloading"></div>
    <script src="/ViewV5/JS/jquery-1.11.2.min.js"></script>
    <script src="/ViewV5/JS/SZHLCommon.js?jsver=20160628" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var ComID = "10314";
            var pages = ["UI_SLSB.html?yd=n", "UI_SBJL.html?yd=n", "UI_YHGL.html?yd=n", "UI_SJSM.html?yd=n"];
            var up = ComFunJS.getQueryString("up");
            var pindex = ComFunJS.getQueryString("p");
            $.getJSON('/API/WXAPI.ashx?Action=LOGIN', { "chkcode": "APP", "password": up.split(',')[1], "UserName": up.split(',')[0], "ComID": ComID }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    ComFunJS.setCookie('szhlcode', resultData.Result);
                    ComFunJS.setCookie('username', resultData.Result1, 20000);
                    $.getJSON('/API/VIEWAPI.ashx?Action=SFJS_GETUSERINFO', {}, function (r) {
                        if (r.ErrorMsg == "") {
                            var yhdata = r.Result[0];
                            ComFunJS.setCookie("zid", yhdata.zid);
                            ComFunJS.setCookie("zname", yhdata.zname);
                            ComFunJS.setCookie("xzid", yhdata.czids);
                            location.href = pages[pindex];
                        }
                    })
                } else {
                    alert('授权问题');
                }
            })
        });

    </script>

</body>
</html>
